package com.yobol.jgrowth.commons;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Map tags
 *
 * @author yobol
 * @create 2018-04-04 17:51
 **/

@Component
public class TagMap {

    private Map<String,String> tags = new HashMap<>();

    public TagMap(){
        tags.put("1","Java语言基础");
        tags.put("2","经典算法");
        tags.put("3","数据库");
        tags.put("4","设计模式");
        tags.put("5","Web");
    }

    public Object getTagByIndex(String index){
        return tags.get(index);
    }

}
